@use 'src/css/constants' as *;

.main {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;

  @include desktop {
    height: 100vh;
    overflow-y: hidden;
  }

  .mainCover {
    display: none;
    position: absolute;
    min-width: 1920px;

    @include desktop {
      display: initial;
    }
  }

  .mainContent {
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    top: 15vh;
    text-align: center;
    padding: 40px;

    @include desktop() {
      position: absolute;
      padding: 0;
      top: 15vw;
      left: 7vw;
      width: 40%;
      text-align: start;
    }

    > p {
      font-size: 2.5em;
      font-weight: 600;
      margin: 0;
      line-height: 1.2;
      
      @include desktop {
        font-size: 3em;
        line-height: 1.5;
      }

      > .libName {
        color: $primary;
      }
    }

    .gitStars {
      display: flex;
      align-items: center;
      border: 1px solid;
      border-radius: 2px;
      align-self: center;
      margin-top: 20px;
      
      @include desktop {
        margin-top: 0;
        align-self: flex-start;
      }

      img {
        padding: 0 4px;
        height: 16px;
      }

      span {
        display: inline-block;
        vertical-align: middle;
        padding: 0 10px;
        border-left: 1px solid;
        font-weight: 500;
      }
    }

    .buttons {
      margin-top: 40px;
      align-self: center;
      display: flex;
      flex-direction: column;

      @include desktop() {
        align-self: flex-start;
        flex-direction: row;
      }

      > :first-child {
        margin-bottom: 10px;

        @include desktop() {
          margin-right: 40px;
          margin-bottom: 0;
        }
      }
    }
  }
}
